package org.example.spring.ioc.dao;

import org.example.spring.ioc.datasource.MyDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DeliveryDao {
    /*
    * 问题1：数据源组件有3个*/
    @Autowired
    MyDataSource myDataSource;

    public void save() {
        System.out.println("保存数据"+myDataSource);
    }
}
